<?php
/**
 * 开服接口调用日志
 * 
 CREATE TABLE `au_open_api_call_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志ID',
  `channel_id` bigint(20) NOT NULL COMMENT '渠道ID',
  `api_id` bigint(20) NOT NULL COMMENT '接口ID',
  `request_id` varchar(64) DEFAULT NULL COMMENT '请求唯一标识',
  `request_params` text COMMENT '请求参数（JSON格式）',
  `response_result` text COMMENT '响应结果（JSON格式）',
  `call_status` tinyint(1) NOT NULL COMMENT '调用状态（1：成功，0：失败）',
  `error_msg` varchar(500) DEFAULT NULL COMMENT '错误信息',
  `request_ip` varchar(50) DEFAULT NULL COMMENT '请求IP地址',
  `request_time` datetime NOT NULL COMMENT '请求时间',
  `response_time` datetime DEFAULT NULL COMMENT '响应时间',
  `duration` int(11) DEFAULT NULL COMMENT '耗时（毫秒）',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_channel_id` (`channel_id`) USING BTREE,
  KEY `idx_api_id` (`api_id`) USING BTREE,
  KEY `idx_request_time` (`request_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='接口调用日志表';
 */
class OpenApiCallLog extends Model{
	public $table_name = "au_open_api_call_log";
}